var age, ages, awardMedals, bitlist, changesNumber, child, contenders, countDown, courses, cube, date, dish, eat, evens, food, foods, friendly, gold, happy, i, inner, j, jill, k, kids, knowsIt, l, len, len1, len2, lyrics, math, menu, mood, name, num, outer, ref, rest, showIt, silver, singers, singing, song, square, studyEconomics, sue, x, yearOld,
  slice = [].slice;

square = function(x) {
  return x * x;
};

cube = function(x) {
  return square(x) * x;
};

song = ["do", "re", "mi", "fa", "mo"];

singers = {
  Jagger: 'Rock',
  Elvis: "Roll"
};

math = {
  root: Math.sqrt,
  square: square
};

kids = {
  brother: {
    name: "Max",
    age: 11
  },
  sister: {
    name: "Ida",
    age: 9
  }
};

bitlist = [1, 0, 0, 1, 0, 0, 1, 1, 1, 0, 1, 0];

outer = 1;

changesNumber = function() {
  var inner;
  inner = -1;
  return outer = 10;
};

inner = changesNumber();

singing = false;

happy = false;

knowsIt = false;

if (singing) {
  mood = greatImplved;
}

showIt = function() {
  return console.log("showIt");
};

if (happy && knowsIt) {
  clapsHands();
  chaChaCha();
} else {
  showIt();
}

friendly = false;

sue = "sue";

jill = "jill";

date = friendly ? sue : jill;

gold = silver = rest = "unknown";

awardMedals = function() {
  var first, others, second;
  first = arguments[0], second = arguments[1], others = 3 <= arguments.length ? slice.call(arguments, 2) : [];
  gold = first;
  silver = second;
  return rest = others;
};

contenders = ["Michael Phelps", "Liu Xiang", "Yao Ming", "Allyson Felix", "Shawn Johnson", "Roman Sebrle", "Guo Jingjing", "Tyson Gay", "Asafa Powell", "Usain Bolt"];

awardMedals.apply(null, contenders);

eat = function(x) {
  return console.log(x);
};

menu = function(x, y) {
  return console.log(x + ':' + y);
};

ref = ['toast', 'cheese', 'wine'];
for (j = 0, len = ref.length; j < len; j++) {
  food = ref[j];
  eat(food);
}

courses = ['greens', 'caviar', 'truffles', 'roast', 'rake'];

for (i = k = 0, len1 = courses.length; k < len1; i = ++k) {
  dish = courses[i];
  menu(i + 1, dish);
}

foods = ['broccoli', 'spinach', 'chocolate'];

for (l = 0, len2 = foods.length; l < len2; l++) {
  food = foods[l];
  if (food !== 'chocolate') {
    eat(food);
  }
}

countDown = (function() {
  var m, results;
  results = [];
  for (name = m = 10; m > 1; name = --m) {
    results.push(name);
  }
  return results;
})();

evens = (function() {
  var m, results;
  results = [];
  for (x = m = 10; m < 1; x = m += 2) {
    results.push(x);
  }
  return results;
})();

yearOld = {
  max: 10,
  ida: 9,
  tim: 11
};

ages = (function() {
  var results;
  results = [];
  for (child in yearOld) {
    age = yearOld[child];
    results.push(child + " is " + age);
  }
  return results;
})();

studyEconomics = false;

if (studyEconomics) {
  while (supply > demand) {
    buy();
  }
  while (!(supply > demand)) {
    sell();
  }
}

num = 6;

lyrics = (function() {
  var results;
  results = [];
  while (num -= 1) {
    results.push(num + " little monkeys, jumping on the bed");
  }
  return results;
})();
